package com.ruoyi.gbase.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据库字段同步对象 DB_COLUMNS
 * 
 * @author yys
 */
public class DbColumns extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 链接ID */
    @Excel(name = "链接ID")
    private Integer linkid;

    /** 模式 */
    @Excel(name = "模式")
    private String tabschema;

    /** 表名 */
    @Excel(name = "表名")
    private String tabname;

    /** 字段名 */
    @Excel(name = "字段名")
    private String colname;

    /** 字段序号 */
    @Excel(name = "字段序号")
    private Integer colno;

    /** 字段类型 */
    @Excel(name = "字段类型")
    private String typename;

    /** 长度 */
    @Excel(name = "长度")
    private Integer length;

    /** 小数尾数 */
    @Excel(name = "小数尾数")
    private Integer scale;

    /** 默认值 */
    @Excel(name = "默认值")
    private String defaultvalue;

    /** 是否可空 */
    @Excel(name = "是否可空")
    private String isnu;

    /** 空值数量 */
    @Excel(name = "空值数量")
    private Integer numnulls;

    /** 是否自增 */
    @Excel(name = "是否自增")
    private String identity;

    /** 注释 */
    @Excel(name = "注释")
    private String remarks;

    /** 表自定义备注-关联出来的 */
    @Excel(name = "表自定义备注")
    private String notes;

    /** 查询用 */
    @Excel(name = "查询用-非数据库")
    private Integer tableid;

    private String zdlx;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("linkid", getLinkid())
            .append("tabschema", getTabschema())
            .append("tabname", getTabname())
            .append("colname", getColname())
            .append("colno", getColno())
            .append("typename", getTypename())
            .append("length", getLength())
            .append("scale", getScale())
            .append("defaultvalue", getDefaultvalue())
            .append("isnu", getIsnu())
            .append("numnulls", getNumnulls())
            .append("identity", getIdentity())
            .append("remarks", getRemarks())
                .append("zdlx", getZdlx())
            .toString();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getLinkid() {
        return linkid;
    }

    public void setLinkid(Integer linkid) {
        this.linkid = linkid;
    }

    public String getTabschema() {
        return tabschema;
    }

    public void setTabschema(String tabschema) {
        this.tabschema = tabschema;
    }

    public String getTabname() {
        return tabname;
    }

    public void setTabname(String tabname) {
        this.tabname = tabname;
    }

    public String getColname() {
        return colname;
    }

    public void setColname(String colname) {
        this.colname = colname;
    }

    public Integer getColno() {
        return colno;
    }

    public void setColno(Integer colno) {
        this.colno = colno;
    }

    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public Integer getScale() {
        return scale;
    }

    public void setScale(Integer scale) {
        this.scale = scale;
    }

    public String getDefaultvalue() {
        return defaultvalue;
    }

    public void setDefaultvalue(String defaultvalue) {
        this.defaultvalue = defaultvalue;
    }

    public String getIsnu() {
        return isnu;
    }

    public void setIsnu(String isnu) {
        this.isnu = isnu;
    }

    public Integer getNumnulls() {
        return numnulls;
    }

    public void setNumnulls(Integer numnulls) {
        this.numnulls = numnulls;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Integer getTableid() {
        return tableid;
    }

    public void setTableid(Integer tableid) {
        this.tableid = tableid;
    }

    public String getZdlx() {
        return zdlx;
    }

    public void setZdlx(String zdlx) {
        this.zdlx = zdlx;
    }
}
